﻿using TVersityDotNet.HelperTypes;
using System.Globalization;

namespace TVersityDotNet.Requests
{
    public class MediasourceRefreshRequest : TVersityRequest
    {
        private MediaSource _mediaSource;

        public MediasourceRefreshRequest(MediaSource mediaSource)
        {
            base.Path = "mediasource/refresh";
            this._mediaSource = mediaSource;
        }

        /// <summary>
        /// Returns the whole string, minus the baseurl used to process this query
        /// </summary>
        public override string RequestString
        {
            get
            {
                return string.Format(CultureInfo.InvariantCulture, "{0}?id={1}", this.Path, this._mediaSource.Id);
            }
        }    
    }
}
